<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
    </style>
</head>
<body>
    <div id="box">
        <input type="text" v-model.lazy="val">{{ val }}
        <input type="text" v-model.lazy.number="num">{{ num+1 }}   
        <!-- 节流和防抖 -->
    </div>
    <script>
        let app = new Vue({
            el: "#box",
            data: {
                val:"",
                num:0
            },
            methods: {

            }
        })
    </script>
</body>
</html>